package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.api.dto.remark.LikedTimesDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.domain.po.InteractionReply;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 互动问题的回答或评论 服务类
 * </p>
 *
 * @author xjs
 */
public interface IInteractionReplyService extends IService<InteractionReply> {

    @Transactional
    void saveReply(ReplyDTO replyDTO);

    PageDTO<ReplyVO> queryReplyPage(ReplyPageQuery query, boolean forAdmin);

    void updateLikeTime(LikedTimesDTO dto);

    void updateLikeTime(List<LikedTimesDTO> dtos);
}
